/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package skybash.gui;

import lev.gui.LCheckBox;
import skybash.SkyBash;
import skybash.SkyBashSaveFile;
import skyproc.gui.SPMainMenuPanel;
import skyproc.gui.SPSettingPanel;
import skyproc.gui.SUMGUI;

/**
 *
 * @author pc tech
 */
public class MainSettingsPanel extends SPSettingPanel {

    LCheckBox mergeNPCs;
    LCheckBox mergeWeaps;
    LCheckBox mergeRaces;
    LCheckBox fullLogging;
    LCheckBox skybashLogging;
    
    public MainSettingsPanel(SPMainMenuPanel parent_) {
        super("Main Patch", parent_, SkyBash.blue, SkyBash.save);
    }

    @Override
    public boolean initialize() {
        if (super.initialize()) {

            mergeNPCs = new LCheckBox("Merge NPCs", SkyBash.settingsFont, SkyBash.orange);
            mergeNPCs.tie(SkyBashSaveFile.GUISettings.MERGE_NPCS, saveFile, SUMGUI.helpPanel, true);
            mergeNPCs.setOffset(2);
            mergeNPCs.addShadow();
            setPlacement(mergeNPCs);
            AddSetting(mergeNPCs);
            
            mergeWeaps = new LCheckBox("Merge Weapons", SkyBash.settingsFont, SkyBash.orange);
            mergeWeaps.tie(SkyBashSaveFile.GUISettings.MERGE_WEAPONS, saveFile, SUMGUI.helpPanel, true);
            mergeWeaps.setOffset(2);
            mergeWeaps.addShadow();
            setPlacement(mergeWeaps);
            AddSetting(mergeWeaps);
            
            mergeRaces = new LCheckBox("Merge Races", SkyBash.settingsFont, SkyBash.orange);
            mergeRaces.tie(SkyBashSaveFile.GUISettings.MERGE_RACES, saveFile, SUMGUI.helpPanel, true);
            mergeRaces.setOffset(2);
            mergeRaces.addShadow();
            setPlacement(mergeRaces);
            AddSetting(mergeRaces);
            
            skybashLogging = new LCheckBox("SkyBash Debug Logging", SkyBash.settingsFont, SkyBash.orange);
            skybashLogging.tie(SkyBashSaveFile.GUISettings.DEBUG_LOGS, saveFile, SUMGUI.helpPanel, true);
            skybashLogging.setOffset(2);
            skybashLogging.addShadow();
            setPlacement(skybashLogging);
            AddSetting(skybashLogging);
            
            fullLogging = new LCheckBox("SkyBash Full Merge Logging", SkyBash.settingsFont, SkyBash.orange);
            fullLogging.tie(SkyBashSaveFile.GUISettings.FULL_LOGGING, saveFile, SUMGUI.helpPanel, true);
            fullLogging.setOffset(2);
            fullLogging.addShadow();
            setPlacement(fullLogging);
            AddSetting(fullLogging);
            
            alignRight();

            return true;
        }
        return false;
    }

}
